package com.example.airquality.air.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.example.airquality.air.entity.QualityIndex;
import com.example.airquality.air.mapper.QualityIndexMapper;
import com.example.airquality.air.service.IQualityIndexService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author hzl
 * @since 2021-05-18
 */
@Service
public class QualityIndexServiceImpl extends ServiceImpl<QualityIndexMapper, QualityIndex> implements IQualityIndexService {
    @Autowired
    private  QualityIndexMapper qualityIndexMapper;

    @Override
    public List<QualityIndex> findAll(IPage page, QualityIndex qualityIndex) {
        return qualityIndexMapper.findAll(page,qualityIndex);
    }

    @Override
    public QualityIndex find(Integer qualityId) {
        return qualityIndexMapper.find(qualityId);
    }

    @Override
    public int setQualityId(QualityIndex qu, Integer id) {
        return qualityIndexMapper.setQualityId(qu,id);
    }

    @Override
    public void delete(String qualityId) {
        qualityIndexMapper.delete(qualityId);
    }


}
